<template>
	<view class="content">

<table>
	<tr>
		<td>头像</td>
		<td>患者姓名</td>
		<td>患者手机号</td>
		<td>挂号科室</td>
		<td>挂号费</td>
		<td>挂号时间</td>
	</tr>
	
	<tr v-for="v in list">
		<td>{{v.Img}}</td>
		<td>{{v.Name}}</td>
		<td>{{v.Tel}}</td>
		<td>{{v.RegisteredHouse}}</td>
		<td>{{v.RegisteredPrice}}</td>
		<td>{{v.RegisteredTine}}</td>
	</tr>
	
</table>






		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list : [],
			}
		},
		onLoad() {
this.get_data()
		},
		methods: {
get_data(){
	uni.request({
	    url: 'http://127.0.0.1:8080/list', //仅为示例，并非真实接口地址。
	    data: {
	    },
	    header: {
	        'content-type': 'application/x-www-form-urlencoded' //自定义请求头信息
	    },
	    success: (res) => {
	        console.log(res.data);
			this.list = res.data.Data
	        
	    }
	});
},
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
